package com.zygh.lz.controller;

import com.zygh.lz.entity.Xarea;
import com.zygh.lz.service.StaffService;
import com.zygh.lz.service.XareaService;
import com.zygh.lz.vo.ResultBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "与市局(长峰科技)对接模块")
@RequestMapping("/api")
@RestController
public class ButtJointController {
    @Resource
    private XareaService xareaServce;
    @Resource
    private StaffService staffService;


    @ApiOperation("与市局对接模块》根据点线面查询区域")
    @GetMapping("selectXareaByInfo")
    public ResultBean selectXareaByInfo(Xarea xarea) {
        return xareaServce.selectXareaByInfo(xarea);
    }

    @ApiOperation("根据区域查询相应警力")
    @GetMapping("selectPoliceNumber")
    public ResultBean selectPoliceNumber(Xarea xarea) {
        return xareaServce.selectPoliceNumber(xarea);
    }

    @ApiOperation("根据区域查询相应警力")
    @GetMapping("selctStrengthById")
    public ResultBean selctStrengthById(Xarea xarea) {
        return xareaServce.selctStrengthById(xarea);
    }

    @ApiOperation("人员信息列表")
    @GetMapping("selectStaffByInfo")
    public ResultBean selectStaffByInfo() {
        return staffService.selectStaffByInfo();
    }

    @ApiOperation("与市局对接模块》全部在线人")
    @GetMapping("selectInformantAll")
    public ResultBean selectInformantAll() {
        return xareaServce.selectInformant();
    }

    @ApiOperation("与市局对接模块》任务组信息")
    @GetMapping("selectTaskSetInfo")
    public ResultBean selectTaskSetInfo() {
        return xareaServce.selectTaskSetInfo();
    }

    @ApiOperation("与市局对接模块》任务信息")
    @GetMapping("selectTaskInfo")
    public ResultBean selectTaskInfo() {
        return xareaServce.selectTaskInfo();
    }


}
